package com.ej.busi.domain;

import com.ej.common.annotation.Excel;
import com.ej.common.annotation.Excel.ColumnType;
import com.ej.common.core.domain.BaseEntity;
import com.ej.common.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程表 ej_course
 * 
 * @author ej
 */
@Data
public class EjCourse  implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 参数主键 */
    @Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 价格 */
    @Excel(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 图片1 */
    @Excel(name = "图片1")
    private String previewPic1;

    /** 年级名称 */
    @Excel(name = "年级名称")
    private String gradeName;

    private Long subjectId;

}
